home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_052 / tek4010 / makefile < prev    next >
Makefile  |  1992-05-06  |  4KB  |  104 lines

  1. ######################################################################
  2. #note from sdp: My contribution is really not very important, I hacked the
  3. # merge main.h and vt100.h (ala vt100v22) and cleaned up the formatting of
  4. # the source code so that it didn't offend my asthetic sensitivities. (I'm
  5. # really quite mad you know.)  I also hacked this Makefile to work for me
  6. # and hopefully, without much work, it'll work for you.  This all started
  7. # started when TAW's archive file was corrupted when I downloaded it...
  8. # The executable was unusable and vt100.h was missing.  So, I hacked this
  9. # till it worked.       
  10. # -- Steve Poling
  11. #    701 Livingston NE
  12. #    Grand Rapids, MI 49503
  13. #    (616)459-7261
  14. #    PLINK: SPoling
  15. #
  16. ######################################################################
  17. #                                                                    #
  18. # Makefile to build vt100 terminal emulator                          #
  19. #         861126 sdp - regenerated vt100.h tidied up some code.   #
  20. #         Oct 86 TAW - added TEK 4010, and removed bugs           #
  21. #            860823 DBW - Integrated and rewrote lots of code        #
  22. #       v2.0 860809 DBW - Major release.. LOTS of changes            #
  23. #       v1.1 860720 DBW - Switches, 80 cols, colors, bug fixes       #
  24. #       v1.0 860712 DBW - First version released                     #
  25. #                                                                    #
  26. ######################################################################
  27.  
  28. OBJ1    = main.o window.o xmodem.o remote.o kermit.o script.o menu.o
  29. OBJ2    = menupick.o devices.o toasc.o filename.o defaults.o tek.o about.o
  30. OBJS    = $(OBJ1) $(OBJ2)
  31. #
  32. #ugly ugly, my version of make gets upset when dependency rules aren't space
  33. #delimited, and alink at least, doesn't like space delimited link lists, 
  34. #sigh.
  35. #
  36. MOD1    = main.o,window.o,xmodem.o,remote.o,kermit.o,script.o,menu.o
  37. MOD2    = menupick.o,devices.o,toasc.o,filename.o,defaults.o,tek.o,about.o
  38. MODS    = $(MOD1),$(MOD2)
  39. LinkLib = ram:lib/
  40. #
  41. # I suggest you add the directory holding blink and cc to your path.  Do you
  42. # think we could get CC to accept an environment variable for includes?
  43. #
  44. # Macros for commands and ancilliary macro.
  45. link = blink
  46. compile = cc
  47. cflags = -c
  48. #
  49. # Macros for the items we'll link.
  50. startup = $(LinkLib)lstartup.obj
  51. libs    =  $(LinkLib)lc.lib + $(LinkLib)amiga.lib
  52. #
  53. # Dependencies...
  54. vt100   : $(OBJS)
  55.    $(link) FROM $(startup) + $(MODS) TO tek4010 LIBRARY $(libs)
  56.  
  57. #
  58. main.o : main.c vt100.h main.h
  59.     $(compile) $(cflags) main.c
  60. devices.o  : devices.c vt100.h
  61.     $(compile) $(cflags) devices.c
  62. window.o : window.c vt100.h
  63.     $(compile) $(cflags) window.c
  64. xmodem.o : xmodem.c vt100.h
  65.     $(compile) $(cflags) xmodem.c
  66. remote.o : remote.c vt100.h
  67.     $(compile) $(cflags) remote.c
  68. kermit.o : kermit.c vt100.h
  69.     $(compile) $(cflags) kermit.c
  70. script.o : script.c vt100.h
  71.     $(compile) $(cflags) script.c
  72. filename.o : filename.c vt100.h
  73.     $(compile) $(cflags) filename.c
  74. toasc.o : toasc.c vt100.h
  75.     $(compile) $(cflags) toasc.c
  76. defaults.o : defaults.c vt100.h
  77.     $(compile) $(cflags) defaults.c
  78. tek.o : tek.c
  79.     $(compile) $(cflags) tek.c
  80. about.o : about.c
  81.     $(compile) $(cflags) about.c
  82. menu.o : menu.c
  83.     $(compile) $(cflags) menu.c
  84. menupick.o : menupick.c
  85.     $(compile) $(cflags) menupick.c
  86. #
  87. # Extra dependencies to make life easier...
  88. #
  89. justlink :
  90.    $(link) FROM $(startup) + $(MODS) TO tek4010 LIBRARY $(libs)
  91. #
  92. makemap :
  93.    $(link) FROM $(startup) + $(MODS) TO tek4010 LIBRARY $(libs) MAP Tek4010.map
  94. #
  95. #
  96. SRC1    = main.c window.c xmodem.c remote.c kermit.c script.c menu.c
  97. SRC2    = menupick.c devices.c toasc.c filename.c defaults.c tek.c about.c
  98. SRCS    = $(SRC1) $(SRC2)
  99. # ugly, ugly, etc.  I'm quite mad you see...
  100. archive :
  101.    delete tek4010a.arc
  102.    arc a tek4010a.arc $(SRCS)
  103.    arc a tek4010a.arc Readme.sdp Makefile Tek4010
  104.